#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "vecmat.h"
#include "ColoredPoint.h"

class Triangle
{
protected:
    ColoredPoint point1;
    ColoredPoint point2;
    ColoredPoint point3;
    vec<float,4> normal;
public:
	Triangle(
        ColoredPoint p1, 
        ColoredPoint p2, 
        ColoredPoint p3, 
        vec<float,4> normal);
	void SetPoint1(ColoredPoint p1);
	void SetPoint2(ColoredPoint p2);
	void SetPoint3(ColoredPoint p3);
	ColoredPoint GetPoint1();
	ColoredPoint GetPoint2();
	ColoredPoint GetPoint3();
	vec<float, 3> GetNormal();
	virtual void Draw();
};

#endif